package ooday01;
// Student 的测试类
public class StudentTest {
    public static void main(String[] args) {
        // 创建一个学生对象
        Student zhangsan = new Student("zhangsan",26,"翻斗花园");
        // 访问成员变量
        zhangsan.name = "zhangsan";
        zhangsan.age = 25;
        zhangsan.sddress = "翻斗花园";
        // 调用方法
        zhangsan.sayHi();

        //练习
        Student lisi = new Student("lisi",26,"翻斗花园");
        lisi.sayHi();

        Student a1 = new Student("胡图图",4,"翻斗花园");
        a1.sayHi();

        Student a = new Student("李铁蛋",6,"希望小学");
        a.sayHi();

        Student c = new Student("王铁棍",26,"铁棍部落");
        c.sayHi();
    }
}
